<?php


namespace app\admin\controller;
use app\admin\model\GoodsAttr as GoodsAttrModel;
use think\Request;
use think\Paginator;    //分页
use think\File;         //上传

class GoodsAttr extends Base
{
    //商品属性表
    public function lists()
    {
        //查询
        $attr = GoodsAttrModel::paginate(4);
        $attrPage = $attr->render();

        //传值,渲染页面
        $webSite = WEB_SITE;
        $staticAdmin = STATIC_ADMIN;

        $this->assign([
            'webSite'     => $webSite,
            'staticAdmin' => $staticAdmin,
            'attr'       => $attr,
            'attrPage'   => $attrPage,
        ]);
        return $this->fetch();
    }


}